package com.ryskoo.common.dto.permission;

import com.ryskoo.common.dto.BasicDTO;

import java.util.List;

/**
 * 角色DTO
 *
 * @author Shawn
 */
public class RoleDTO extends BasicDTO {

    private static final long serialVersionUID = -3652754596846056284L;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色类型     平台角色、会员角色
     */
    private int type;

    /**
     * 角色关联的菜单列表
     */
    private List<MenuDTO> menuList;

    /**
     * 角色关联的权限列表
     */
    private List<PermissionDTO> permissionList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<MenuDTO> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<MenuDTO> menuList) {
        this.menuList = menuList;
    }

    public List<PermissionDTO> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<PermissionDTO> permissionList) {
        this.permissionList = permissionList;
    }
}